project('LWIP_SAMPLE', 'C', 'CPP',
	license: 'Proprietary',
	default_options: ['buildtype=debug']
)

SAMPLE_NAME = 'main'
sample_dependencies = []
sample_dependencies += dependency('libdpdk')
cc = meson.get_compiler('c')

lwip_inc=[]
lwip_inc+=include_directories('../../lwip/src/include/')
lwip_inc+=include_directories('../../lwip/contrib/ports/unix/port/include/')
lwip_inc+=include_directories('../../lwip/contrib/')
dep = declare_dependency(
  dependencies : cc.find_library('lwip', dirs : [meson.source_root()+'/../../lwiplib/']),
  include_directories : lwip_inc,
)
sample_dependencies += dep

sample_srcs = [
	SAMPLE_NAME + '.c'
]

sample_inc_dirs  = []
# Common DOCA library logic
sample_inc_dirs += include_directories('.')

executable(SAMPLE_NAME, sample_srcs,
	dependencies : sample_dependencies,
	include_directories: sample_inc_dirs,
	install: false)
